import { createRouter,createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        component: () => import('./../views/Home.vue')
    },
    {
        path: '/about',
        component: () => import('./../views/About.vue')
    },
    {
        path: '/:pathMatch(.*)*', name: 'NotFound', component:
            import('./../views/NotFound.vue')
    },
]

export const router = createRouter({
    routes,
    history: createWebHashHistory()
})
